package com.classAnnotation;

import com.functionAnnotation.UserBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 23735
 * Date: 2023-02-07
 * Time: 21:35
 */
@Service
public class UserService {

    public User getUser(Integer id, String name){
        User user=new User();
        user.setId(id);
        user.setName(name);
        return user;
    }
    public void display(){
        System.out.println("@Service");
    }
}
